home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1575 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.0 KB

  1. Subject: Re: MiNT problems... 
  2. Date: Tue, 28 Jun 1994 11:28:09 +1000
  3. From: Warwick Allison <warwick@cs.uq.oz.au>
  4.  
  5. George Simunovich wrote:
  6. >
  7. >I was having a lot of the same problems that people seem to be having.
  8. >My problems were that some of the GNU utilities quit working after
  9. >patching MiNT 1.10 to h1 and later.  I found the problem was GNU C's
  10. >builtin alloca routine.  It seems that alloca was not requesting memory
  11. >from the OS but getting the memory from the program's (stack or heap not
  12. >real sure).
  13.  
  14. That's what alloca does.  GNU software is notorious for using alloca rather
  15. than malloc.  I don't know why - probably so they don't have to remember
  16. to delete it.
  17.  
  18. >From a man entry:
  19.  
  20.      alloca() allocates size bytes of space in the stack frame of
  21.      the  caller,  and  returns a pointer to the allocated block.
  22.      This temporary space is automatically freed when the  caller
  23.      returns.  Note: if the allocated block is beyond the current
  24.      stack limit, the resulting behavior is undefined.
  25.  
  26.  
  27. --
  28. Warwick
  29.